<template>

    <div><headTop :headTitle="encodeURI('搜索')" :goBack="true" :msiteTitle="home"/></div>
</template>

<script>
  import axios from 'axios'
  import { currency } from '../../utils/currency'
  import headTop from '../../components/header/head'
    export default {
        name: "index",
      components:{
        headTop
      },
        created:function () {
            console.log(this.$route.query.searchTxt);
              axios.post('/api/pic-consumer-product/productCar/list?page=0&rows=10',{
                //search_name : this.$route.query.searchTxt
              }).then(response => {
                /*this.code = response.data.code;*/
                /*document.write(response.data.result);*/
                this.results = response.data.results;
                console.log(response.data.results);
              }).catch(err => {
                console.log(err);
              });
              }
    }
</script>

<style scoped>

</style>
